From 7aa76f57eb55556c5e7c3b39e38e4f050bfdba62 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 4 Apr 2025 16:00:23 +0200 Subject: [PATCH] remove costly availability check that is never used we never read the value computed computing it means a recursive visit of the whole folder hierarchy which could be taking a long time Signed-off-by: Matthieu Gallien --- src/libsync/propagatorjobs.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsync/propagatorjobs.cpp b/src/libsync/propagatorjobs.cpp index 86086c335..002480c82 100644 --- a/src/libsync/propagatorjobs.cpp +++ b/src/libsync/propagatorjobs.cpp @@ -107,7 +107,6 @@ void PropagateLocalRemove::start() } QString removeError; - const auto availability = propagator()->syncOptions()._vfs->availability(_item->_file, Vfs::AvailabilityRecursivity::RecursiveAvailability); if (_moveToTrash && propagator()->syncOptions()._vfs->mode() != OCC::Vfs::WindowsCfApi) { if ((QDir(filename).exists() || FileSystem::fileExists(filename)) && !FileSystem::moveToTrash(filename, &removeError)) { -- 2.30.2